content = '''
a = 'hello世界'; b = a.encode('utf-8'); c = b.decode('utf-8'); print('a = {}, b = {}, c = {}'.format(a, b, c))
a = hello世界, b = b'hello\xe4\xb8\x96\xe7\x95\x8c', c = hello世界
a = '你好'; b = 'world'; c = a + b; print('a = {a}, b = {b}, c = {c}')
a = {a}, b = {b}, c = {c}
print(f'a = {a}, b = {b}, c = {c}')
a = 你好, b = world, c = 你好world
a += b;print('a = {0}, b = {1}'.format(a, b))
a = 你好world, b = world
a[3]
'o'
a.find('o')
3
b = a.replace('w', ',w');print('a = {0}, b = {1}'.format(a, b))
a = 你好world, b = 你好,world
b = b.replace('你好', '    ,你好'); c = b.replace('world', 'world      '); print('a = %s, b = %s'.format(a, b))
a = %s, b = %s
b = b.replace('你好', '    ,你好'); c = b.replace('world', 'world      '); print('a = %s, b = %s' % (a, b))
a = 你好world, b =     ,    ,你好,world
b.strip(); print(b)
    ,    ,你好,world
b.split(','); print(b)
    ,    ,你好,world
a = b.split(','); print('a = {a}, b = {b}')
a = {a}, b = {b}
print(f'a = {a}, b = {b}')
a = ['    ', '    ', '你好', 'world'], b =     ,    ,你好,world
a = ','.join(a); print(f'a = {a}')
a =     ,    ,你好,world
'''
output = open('output.txt', 'w', encoding='utf-8')
output.write(content)
output.close();